#1.项目设置
# 指定CMake最低版本
cmake_minimum_required(VERSION 3.30)
# 设置项目名称及版本
#project(MyProject VERSION 1.0 LANGUAGES CXX)
project(n007basickn C)


set(CMAKE_C_STANDARD 11)


#2.编译可执行程序
# 添加可执行文件
add_executable(
        n007basickn
        #main.c
        #l030functions.c
        l030functionuse.c
)
# 链接库
#target_link_libraries(MyApp MyLib)
target_link_libraries(n007basickn MyLib)


#3.创建库
# 创建静态库
#add_library(MyLib STATIC lib.cpp)

add_library(MyLib STATIC l030functions.c)

# 设置库的头文件路径
#target_include_directories(MyLib PUBLIC include)